<ui:composition template="/WEB-INF/templates/layout.xhtml" 
	xmlns="http://www.w3.org/1999/xhtml"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:o="http://omnifaces.org/ui"
>
    <ui:define name="contentTitle">Second</ui:define>

    <ui:define name="content">
        <p>
            This page resides in the <code>/WEB-INF/faces-views</code> folder as
            <code>other/second.xhtml</code>
            and has been automatically scanned by FacesViews as well.
        </p>

        <p>
        	<h:link value="Back via link" outcome="/viewsdemo" />
        </p>

        <p>
            Command button that invokes an action and afterwards redirects to the "viewsdemo" page:
        </p>
        
        <h:form>
            <h:commandButton value="Back via PRG" action="#{postRedirectBean.toViewsDemo}" />
        </h:form>

        <hr />
        
        <p>
	        <h:link value="Back to entry demo page" outcome="/facesviews/ExtensionlessURLs.xhtml" />
	    </p>
    </ui:define>
</ui:composition>